package net.knightwatch.kwtools.database;

import android.database.sqlite.SQLiteDatabase;
import android.util.Log;

public class SpinnerQuestionTable {
	private static final String TAG = "PickListQuestionTable";
	public static final String TABLE_SPINNER_QUESTION = "SpinnerQuestions";
	public static final String COLUMN_ID = "_id";
	public static final String COLUMN_QUESTION_ID = "questionId";
	public static final String COLUMN_OPTION_TEXT = "optionText";
	
	private static final String DATABASE_CREATE = "create table "
			+ TABLE_SPINNER_QUESTION
			+ "("
			+ COLUMN_ID + " integer primary key autoincrement,"
			+ COLUMN_QUESTION_ID + " integer not null,"
			+ COLUMN_OPTION_TEXT + " text not null"
			+ ");";
	public static void onCreate(SQLiteDatabase database) {
		Log.i(TAG, "Creating " + TABLE_SPINNER_QUESTION + " Table");
		try {
		database.execSQL(DATABASE_CREATE);
		} catch (Exception e){
			Log.v(TAG, e.toString());
		}
	}
	public static void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion){
		
	}
	

}
